﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>@ViewBag.Title</title>
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
    <script src="~/Scripts/jquery-1.7.1.min.js"></script>
    <script src="~/Scripts/jquery.signalR-1.0.1.min.js"></script>
    <script src="~/signalr/hubs"></script>
    <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
</head>
<body>

      <!--motha fokker  -->
    @if(Request.IsAuthenticated)
    {
    <div id="container">
        <div class="PageHeader">
            <div id="logoutForm">
                <div id="logoutButton">
                    @using (Html.BeginForm("LogOut", "Home", FormMethod.Post, new { id = "logoutB"}))
                    {
                        <input type="submit" value="Log Out" />
                        //<a id="smu" href="javascript:document.getElementById('logoutB').submit()">Log off</a>
                    }
                </div>
                <div id="nameAtLogout">@Html.Encode(User.Identity.Name) |</div>
            </div>
            <a href="http://localhost:54920/User"><img class="Logo" src="https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak-ash3/941477_10152408103957195_521608573_n.jpg", alt="Bordspil.is" /></a> 
        </div>
        <nav>
            <div id="Wrapper">
                <div id="Navigation">
                    <ul>
                        <li><a href="~/User/UserProfile">Prófíll</a>
                            <ul>
                                <li><a href="~/User">Innranet</a></li>
                            </ul>
                        </li>
                        <li><a href="~/User/Stats">Tölfræði</a>
                            <ul>
                                <li><a href="#">Stigamet</a></li>
                                <li><a href="~/User/ProfilePoints">Prófílstig</a></li>
                            </ul>
                        </li>
                        <li><a href="~/User/Games">Leikir</a>
                            <ul>
                                <li><a href="~/Game/GamesWithCards">Spila á spil</a></li>
                                <li><a href="~/Game/Boardgames">Borðspil</a></li>
                                <li><a href="~/Game/GamesInProgress">Leikir í gangi</a></li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </div>
        </nav>

        <div>
            @RenderBody()
        </div>
    </div>
 

    <div id="PageFooter">
        <div id="PageFooterText">
        <p>
            Háskólinn í Reykjavík | Vorönn 2013 | Verklegt námskeið | Borðspil.is
        </p>
        <p>
            Auður Íris Ólafsdóttir | Eyþór Sigtryggsson | Gunnar Egill Ágústsson | Ingólfur Daníel Sigurðsson | Petra Pétursdóttir
        </p>
            </div>
        <div id="PageFooterBackground">
            <img src="https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak-ash4/260375_10152408118337195_987217685_n.jpg" alt="smu"/>
            </div>
    </div>
    }
</body>
</html>
